package com.jvyou.mybatis.executor.resultset;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.reflect.Field;
import java.util.Map;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/23 11:48
 * @Description 表元数据
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TableMetaData {

    /*表的名称*/
    private String tableName;
    /*字段map，key为数据库列名，列为实体对应的Field*/
    private Map<String, Field> fieldMap;
    /*主键*/
    private String primaryKey;
    /*实体的类型*/
    private Class<?> entityClass;
}
